home *** CD-ROM | disk | FTP | other *** search
/ com!online 2002 July / com!online0702.iso / software / livemotion / DATA1.CAB / Automation / Scripts / End Frames - Distribute.js < prev    next >
Encoding:
Text File  |  2002-05-13  |  2.4 KB  |  50 lines

  1. /***************************************************************
  2. ADOBE SYSTEMS INCORPORATED 
  3. Copyright 2002 Adobe Systems Incorporated 
  4. All Rights Reserved 
  5.  
  6. NOTICE:  Adobe permits you to use, modify, and distribute this 
  7. file in accordance with the terms of the Adobe license agreement 
  8. accompanying it.  If you have received this file from a source 
  9. other than Adobe, then your use, modification, or distribution
  10. of it requires the prior written permission of Adobe. 
  11. ***************************************************************/
  12. /***************************************************************
  13. Author: Mary Obelnicki
  14. ***************************************************************/
  15.  
  16. /***************************************************************
  17.  
  18. distributeEndFrames(arrayObjs, moveKeyFrames, alignToCTI, maintainStartOrder, topDown)
  19.     This utility will take an array of objects and distribute their end times 
  20.     across the timeline.  This will not affect the lifetime of the objects.
  21.  
  22. Arguments:
  23.     arrayObjs (array) - the array of LMObjects to align the lifetimes of
  24.     moveKeyFrames (boolean) - True: move the key frames with the lifetime. 
  25.         False: the key frames in place.
  26.     alignToCTI (boolean) - If set to true, place the first object's 
  27.         end frame at the current position of the CTI. If set to false, 
  28.         the end frame of the first object will be left in place.
  29.     maintainOrder (boolean) - True: maintain the order of end key frames. 
  30.         False: the end order will be automatically sorted as determined by topDown.
  31.     topDown (boolean) - True: the order of sorting will be dependent upon the LMObject's
  32.         position in the array. The stagger order will be from the first object
  33.         in the array to the last object in the array.  False: the stagger order will be 
  34.         from the last object in the array to the first object in the array
  35.  
  36. ***************************************************************/
  37.  
  38. /***************************************************************
  39. To change the behavior of this script, make your changes below
  40. ***************************************************************/
  41.  
  42. distributeStartFrames(application.currentComposition.selection, true, false, false, false); 
  43.  
  44. /***************************************************************
  45. DO NOT EDIT BELOW THIS LINE
  46. ***************************************************************/
  47.  
  48. #include "../../Include/shellSort.js"
  49. #include "../../Include/TimeFrameTools.js"
  50.